<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
<!-- above set at the top of the file will set     -->
<!-- the browser's rendering engine into           -->
<!-- "Quirks Mode". Replacing this declaration     -->
<!-- with a "Standards Mode" doctype is supported, -->
<!-- but may lead to some differences in layout.   -->

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Hello App Engine</title>
  </head>

  <body>
    <h1>Hello App Engine!</h1>
	
    <table>
      <tr>
        <td colspan="2" style="font-weight:bold;">Available Servlets:</td>        
      </tr>
      <tr>
        <td><a href="snitter"/>Snitter</td>
        <td><a href="snitter?command=createUser&email=bla@big.com&psw=1245&name=BigMe&screenName=Clabam"/>Create user</td>
        <td><a href="snitter?command=logIn&email=bla@big.com&psw=1245"/>Login</td>
        <td><a href="snitter?command=deleteAll"/>Clear db</td>
        <td><a href="snitter?command=getUserNewMsgList&id=13">Get msg user list</td>
        <td><a href="snitter?command=getPublicNewMsgList">Get public list</td>
      </tr>
    </table>
    <form id="form2" name="form2" method="get" action="snitter">
  <label>userName
  <input type="text" name="name" id="name" />
  </label>
  <p>
    <label>password
    <input type="password" name="psw" id="psw" />
    </label>
  </p>
  <p>
    <label>screenName
    <input type="text" name="screenName" id="screenName" />
    </label>
  </p>
  <p>
    <label>adress
    <input type="text" name="adress" id="adress" />
    </label>
  </p>
  <p>
    <label>zip
    <input type="text" name="zipCode" id="zipCode" />
    </label>
  </p>
  <p>
    <label>email
    <input type="text" name="email" id="email" />
    </label>
    <input type="hidden" name="command" id="command" value="createUser"/>
  </p>
  <p>
    <label>
    <input type="submit" name="button2" id="button2" value="add user" />
    </label>
  </p>
</form>
    </br>
    <form id="form3" name="form3" method="get" action="snitter">
  <label>id
  <input type="text" name="id" id="id" />
  </label>
  <p>
    <label>id2
    <input type="text" name="idUserToFollow" id="idUserToFollow" />
    </label>
    <input type="hidden" name="command" id="command2" value="addFollowing" />
  </p>
  <p>
    <label>
    <input type="submit" name="button3" id="button3" value="add following" />
    </label>
  </p>
</form>
</br>
<form id="form4" name="form4" method="get" action="snitter">
  <label>id
  <input type="text" name="id" id="id" />
  </label>
  <p>
    <label>id2
    <input type="text" name="idUserFollowing" id="idUserFollowing" />
    </label>
    <input type="hidden" name="command" id="command3" value="removeFollowing"/>
  </p>
  <p>
    <label>
    <input type="submit" name="button4" id="button4" value="remove following" />
    </label>
  </p>
</form>
</br>
<form id="form5" name="form5" method="get" action="snitter">
  <label>id
  <input type="text" name="id" id="id" />
  <br />
  <br />
  msg
  <input type="text" name="msg" id="msg" />
  </label>
  <input type="hidden" name="command" id="command4" value="addMsg"/>
  <p>
    <label>
    <input type="submit" name="button5" id="button5" value="add msg" />
    </label>
  </p>
</form>
</br>
<form id="form6" name="form6" method="get" action="snitter">
  <label>id
  <input type="text" name="id" id="id" />
  </label>
  <p>
    <label>msgNumber
    <input type="text" name="msgNumber" id="msgNumber" />
    </label>
    <input type="hidden" name="command" id="command5" value="removeMsg" />
  </p>
  <p>
    <label>
    <input type="submit" name="button6" id="button6" value="remove msg" />
    </label>
  </p>
</form>
</br>
<form id="form7" name="form7" method="get" action="snitter">
  <label>userId
  <input type="text" name="id" id="id" />
  <br />
  <br />
  msgN
  <input type="text" name="nMsg" id="nMsg" />
  </label>
  <input type="hidden" name="command" id="command6" value="getMsgFrom"/>
  <p>
    <label>
    <input type="submit" name="button7" id="button7" value="Get msg" />
    </label>
  </p>
</form>
</br>
<form id="form1" name="form1" method="get" action="snitter">
  <label>Search
  <input type="text" name="searchFor" id="searchFor" />
  </label>
  <label>By
  <select name="searchBy" id="searchBy">
    <option value="userMail">Mail</option>
    <option value="screenName">Screen Name</option>
  </select>
  </label>
  <label>
  <input type="submit" name="button" id="button" value="search" />
  </label>
  <input type="hidden" name="command" id="command7" value="search"/>
</form>
  </body>
</html>
